package org.ffrl.design.command;

/**
 * 简单的远程控制类
 * 
 * @author  zhangpeijun[zhangpeijun1024@qq.com]
 * @version  [v1.0.1, 2017年10月31日]
 * @see  [相关类/方法]
 * @since  [产品/模块版本]
 */
public class SimpleRemoteControl {
    
    Command slot;
    
    public void setCommand(Command command){
        slot = command;
    }
    
    public void buttonWasPressed(){
        slot.execute();
    }
    
}
